package com.shizhan.shizhan2;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service("inkService")
public class InkServiceImpl implements InkService{

    @Resource(name = "moSize")
    private InkDao inkDao;

    public InkDao Ink() {
        return inkDao;
    }

    public void Ink(InkDao inkDao) {
        this.inkDao = inkDao;
    }

    @Override
    public boolean serve(Entity  entity ) {
        return inkDao.testInk(entity) > 0;
    }

    public void setInkDao(CaiSize inkDao) {
        this.inkDao = inkDao;
    }

    public void setInkDao(MoSize inkDao) {
        this.inkDao = inkDao;
    }
}
